package br.com.iswe.gwt.ui.client.comp;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.MultiWordSuggestOracle;
import com.google.gwt.user.client.ui.SuggestBox;

public class ISWESuggestBox extends Composite {
	protected SuggestBox suggestBox;
	protected MultiWordSuggestOracle suggestList;
	
	
	public ISWESuggestBox(){
		
		suggestList = new MultiWordSuggestOracle();
		suggestBox = new SuggestBox(suggestList);
		
		initWidget(suggestBox);
	}
	
	protected String name = null;
	public void setName(String nome) {		
		this.name = nome;
	}
	
	public String getText(){
		return this.suggestBox.getText();
	}
	
	public void setText(String text){
		this.suggestBox.setText(text);
	}
	
	public SuggestBox getSuggestBox() {
		return suggestBox;
	}
	public void setSuggestBox(SuggestBox suggestBox) {
		this.suggestBox = suggestBox;
	}
	public MultiWordSuggestOracle getSuggestList() {
		return suggestList;
	}
	public void setSuggestList(MultiWordSuggestOracle suggestList) {
		this.suggestList = suggestList;
	}
	
	
}
